-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add linker annotations to some of CoreLib #36532
Conversation
Tagging subscribers to this area: @ViktorHofer |
src/libraries/System.Private.CoreLib/src/System/Reflection/TypeDelegator.cs
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Activator.RuntimeType.cs
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Reflection/RuntimeReflectionExtensions.cs
Outdated
Show resolved
Hide resolved
src/coreclr/src/System.Private.CoreLib/src/Internal/Runtime/InteropServices/ComActivator.cs
Outdated
Show resolved
Hide resolved
Some of these are handled as linker intrinsics, so they'll actually keep less than what the annotation declares. The annotation mostly serves to suppress warnings when linker analyzes the body of the method itself.
e41a29c
to
b188623
Compare
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs
Show resolved
Hide resolved
I would say this is unrelated. |
There is already an issue for this test failure, although the failure mode differs: |
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs
Show resolved
Hide resolved
src/coreclr/src/System.Private.CoreLib/src/System/Reflection/Emit/ILGenerator.cs
Outdated
Show resolved
Hide resolved
API review was done over email. Approved by @stephentoub, Immo's opinion here: dotnet#36532 (comment). There were no objections.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
Some of these are handled as linker intrinsics, so they'll actually keep less than what the annotation declares. The annotation mostly serves to suppress warnings when linker analyzes the body of the method itself.